package xu.htgl.service;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;
import xu.htgl.common.Result;
import xu.htgl.entity.Account;
import xu.htgl.entity.Admin;

import java.util.List;

public interface AdminService {
    Result selectAll(Admin admin);

    PageInfo page(Integer pageNum, Integer pageSize, Admin admin);

    Result save(Admin admin);

    Result updata(Admin admin);

    Result deleteById(Integer id);

    @Transactional
    Result batchDelete(List<Integer> ids);

    Result login(Account account);

    Admin selectById(String id);

    Result updatePassword(Account account);

    Result updateAvatar (Admin admin);
}
